package edu.sctu.wangfuxin.day20150517;

/**
 * Created by user06 on 2015/5/17.
 */
public class TextChildTwo extends Abstract {
    Student[] studentarray = new Student[10];
    public TextChildTwo(Student[] studentarray) {
        super(studentarray);
        this.studentarray = studentarray;
    }

    @Override
    public void GetSysTem() {
        int sum=0;
        for(int i=0;i<10;i++){
            if(studentarray[i].getScore()>=60 && studentarray[i].getSex().equals("男") ){
                System.out.println("姓名："+studentarray[i].getName()+"  "+"学号："+studentarray[i].getNumber()+"  "+"性别:"+studentarray[i].getSex()+"  "+"年龄："+studentarray[i].getAge()+"  "+"成绩："+studentarray[i].getScore()+"  "+"地址:"+studentarray[i].getLoc());
                sum = sum +1;
            }

        }
        System.out.println("满足成绩大于60且是男生的人数为：" + sum);
    }

}
